lastIndexOf

(alias) pure function lastIndexOf(text: text): integer

Deprecated

Use 'last_index_of' instead

Returns the index within this text of the last occurrence of the specified string, or -1 if not found.

Alias

Alias target

Since

0.9.0

Parameters

text

The substring to search for.


(alias) pure function lastIndexOf(text: text, max: integer): integer

Deprecated

Use 'last_index_of' instead

Returns the index within this text of the last occurrence of the specified string, starting from the specified startIndex, or -1 if not found.

Alias

Alias target

Since

0.9.0

Parameters

text

The substring to search for.

max

The index to search before.